public class Main {
    public static final double PI = 3.1415926535;
    static {
        System.out.println("圆形工具类被调用。。。");
    }
    //计算圆形面积
    public static double getArea(double radius){
        return PI * radius * radius;
    }
    //计算圆形周长
    public static double getCircumference(double radius){
        return 2 * PI * radius;
    }
     //计算扇形弧长 angle //角度
    public static double getArcLength(double radius,double angle){
        return (angle / 360) * 2 * PI * radius;
    }
    //计算扇形面积
    public static double getSectorArea(double radius,double angle){
        return (angle / 360) * PI * radius;
    }
    //计算圆柱表面积
    public static double getCylinderArea(double radius,double height){
        return 2 * PI * radius * (radius + height);
    }
    //计算圆柱体积
    public static double getCylinderVolume(double radius,double height){
        return  PI * radius * radius * height;
    }
    //计算圆锥表面积
    public static double getConeArea(double radius,double height){
        double s = Math.sqrt(radius * radius + height * height);
        return PI * radius * (radius + s);
    }
    //计算圆锥体积
    public static double getConeVolume(double radius,double height){
        return  PI * radius * radius * height / 3;
    }
}